#ifndef SELLEVENT_H_
#define SELLEVENT_H_

#include "Request.h"

class SellEvent : public Request
{
protected:
	int numOfUnits;

public:
	static const eEvents type = sell;
	double const _price;

	SellEvent();
	SellEvent(const Poco::DateTime * const  _date, int numUnits, int userId, ass2::eEnergy eType, double price);
	virtual int compareTo(Events &other) const;
	virtual int getAmount();
	virtual bool setAmount(int newAmount);
	virtual eEvents getType() const;
	virtual ~SellEvent();
};

#endif /*SELLEVENT_H_*/
